//package com.boot.dongli.ttl;
//
//import org.springframework.amqp.core.*;
//import org.springframework.beans.factory.annotation.Value;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
///**
// * @Author: lkz
// * @Title: TTLOneRabbitConfig
// * @Description:
// * @Date: 2023/10/16 14:13
// */
//@Configuration
//public class TTLOneRabbitConfig {
//
//
//
//
//    @Bean
//    public DirectExchange directExchange(){
//        return ExchangeBuilder.directExchange("ttl.one.exchange").build();
//    }
//
//    @Bean
//    public Queue queue(){
//        return QueueBuilder.durable("ttlOne_queue").build();
//    }
//
//    @Bean
//    public Binding binding(DirectExchange directExchange, Queue queue){
//        return BindingBuilder.bind(queue).to(directExchange).with("info");
//    }
//
//}
